Improved code order of debug settings, removed Debug that automatically overrides other exception objects without returning the ErrorHandler to give the logger to