Implemented the default error handlers