Add cleanup()'s before process termination
Merge pull request #230 from rev112/main_cleanup_options

Add cleanup()'s before process termination