Error Handler

Applied central error handler with callbacks