add error handling to stop script