         connect: =>
             # Whether we are going to reconnect or not, the cursor might have timed out.
             @container.saved_data.cursor_timed_out = true
+            if @timeout?
+                clearTimeout @timeout
 
             if @connection?
                 if @driver_status is 'connected'


            @driver_handler = new DataExplorerView.DriverHandler
                container: @

            @render()


            @.$('.wrapper_scrollbar').css 'width', ($(window).width()-92)+'px'

        destroy: =>
            @results_view.destroy()
            @history_view.destroy()
            @driver_handler.destroy()

            @display_normal()
            $(window).off 'resize', @display_full

            clearTimeout @timeout_driver_connect
            # We do not destroy the cursor, because the user might come back and use it.
    
