check for exit syntax