Added custom error handler when debug mode is disabled