public void addOnDeactivate(Callback callback) {
        Execution exec = Executions.getCurrent();
        if (exec == null)
            throw new IllegalStateException("Execution cannot be null!");
        Desktop desktop = exec.getDesktop();