Thank you for suggesting that article. Now, as a beginner, I'm a bit confused. To release resources - kind of "finally" in other languages - what should I use? It seems that dynamic-wind is appropriate for my simple code, I just have to stay away from using the before-thunk argument. Is it so? Thanks.