void () { MessageBusConnection connection = myConnection; myFrame = null; myConnection = null; myManager.removeActionPopup(ActionPopupMenuImpl.this); removeAll(); if (connection != null) { connection.disconnect(); } }