End the mission when a script error occurs.