Added ErrorHandler::clearHandlers and ErrorHandler::replaceHandlers methods