[#46920837] ErrorHandler doesn't work unless the toolbar is active - refactored ErrorHandler class to register statically; updated it to alse support monolog logging of the php errors.