Correctly kill process