class WorkbenchCloseHandlerImpl implements WorkbenchCloseHandler {

    @Override
    public void onWindowClose(final Command command) {
        if (command != null) {
            command.execute();
        }
    }

}