Fine Tuned the errorHandler to work with catching broad errors