add exit to script