fixed Errorhandler's fatal error catching and enabled error-logging