fixed incorrect exit commands