Now exiting with a 1 if the run mode is invalid to indicate a failure.