removd exit(1) command
removed remaining exit commands