process termination not working