overwrite existing files and auto-close shell output buffers