[Haskell-cafe] Windows: how to perform cleanup actions when the console window closes