Stop loading if error occured