Added ErrorManager, a custom error handler