                     }
 
         abort_query: =>
+            @disable_toggle_executing = false
+            @toggle_executing false
             @state.query_result?.force_end_gracefully()
             @driver_handler.close_connection()
 

        toggle_executing: (executing) =>
            if executing == @executing
                return
            else if executing is true
                @executing = true
                @timeout_show_abort = setTimeout =>
                    #TODO Delay a few ms
                    @$('.loading_query_img').show()
                    @$('.execute_query').hide()
                    @$('.abort_query').show()
                , @delay_show_abort

                            events:
                                error: (query_result, err) =>
                                    @results_view_wrapper.render_error(@query, err)
                                ready: (query_result) =>
                                    if query_result.is_feed
                                        @toggle_executing true
                                        @disable_toggle_executing = true
                                        for event in ['end', 'discard', 'error']
                                            query_result.on event, () =>
                                                @disable_toggle_executing = false
                                                @toggle_executing false

                        @state.query_result = query_result

                        @results_view_wrapper.set_query_result
                            query_result: @state.query_result

                    @disable_toggle_executing = false
                    @driver_handler.run_with_new_connection rdb_query,
                        optargs:
                            binaryFormat: "raw"
