Add exiting on invalid command