added else to kill process