Add cleanup()'s before process termination