Added an option that execute a script while receiving an error