         index = @hoffPanes.indexOf(pane);
         if index >= 0
           @hoffPanes.splice( index, 1 );
+         @bottomDock.deletePane pane.getId()
+         pane = null
+
 
     executeQueryWithConnect: ->
         alias = @getAliasForPane()

                            if queryCount == 1 and result.columns?.length == 1 and result.columns?[0]['name'] == 'QUERY PLAN' and result.query.substring(0, 7) == 'EXPLAIN'
                                @renderQueryPlan(result.rows)
                            else
                                console.log 'aksjdljaslk'
                                @renderResults(result)

                            first = false

                div.innerHTML = response;
                explain = div.querySelector(".result-html");

                unless @analyzePane in @hoffPanes
                    @analyzePane = new AnalyzePaneView()
                    @hoffPanes.push @analyzePane
                    @bottomDock.addPane @analyzePane, 'Analyze', true
