exit when arguments are invalid