addeded exit to script