Using std::error_code in error handler
Removed fatal_error method from error_handler