how is 'finally' implemented in C# or Java? : <p>I would like to port some c# code to a language that doesn't have the finally construct. 
What alternative approach can I use to mimic it?
If you know how it is implemented, perhaps I can create this...</p>
