private void actionClosePanel() {
        AbstractTab tab = MainWindow.getInstance().getActiveTab();

        if (tab == null)
            return;

        if (tab instanceof ChannelTab) {
            InputHandler.handlePart("");
        } else if (tab instanceof PrivateChatTab) {
            tab.getServerTab().removePrivateChatTab((PrivateChatTab) tab);
        } else {
            InputHandler.handleQuit(null);
        }
    }