Why don't we just declare their debt nullified?
They can obviously not pay it back anyway so nothing really changes from where we are now, except that Greece can start to work normally again.
And then we do that with Argentina and a few other countries as well.
The market will then regulate itself to make sure it won't happen again.