Handle common errors so that they are not logged as error