clean up properly after calling process.exit
1.1.0