fixes syntax error in exit