public void triggerMessage(SystemMessage message) {
        lastMessage = message;
        if (errorHandler != null) {
            if (errorHandler.onError(this, message))
                return;
        }

        if (errorReportHandler != null && isHandleErrors(message.getType()))
            errorReportHandler.onError(message);
    }
Remove all method which does not destruct

@throws Throwable
jphp-runtime/src/php/runtime/env/Environment.java