Handle all the errors