cleaner output, close handler