Stop immidiately if there is an error