add exit option to run_script