cleaning up processes on exit