Fixed processes not quitting