 
   deactivate: ->
     @unifiedView?.setConnected(false)
-    @statusView.destroy()
+    @statusView?.destroy()
+    @statusView = null
     @unifiedView?.destroy()
     @subscriptions.dispose()
 


    if !@getUnifiedView().isVisible()
      @getUnifiedView().setVisible(true)
      @statusView.setActive(true)
      if !@dbgp.listening()
        @dbgp.listen()
    

      
    else
      @getUnifiedView().setVisible(false)
      @statusView?.setActive(false)
      @dbgp.close()

  addWatch: ->
