   WatchPane = () ->
     state = builder3.root()
     refresh = () -> TreeView.populate(state)
-    _debugger.onBreak () =>
-        refresh()
+    listeners.push _debugger.onBreak () -> refresh()
     return state
 
   WatchPane.render = (state) ->


  CallStackPane = () ->
    state = builder.root()
    removeBreakListener = _debugger.onBreak () ->
      log "Debugger.break"
      TreeView.reset(state)
      eventEmitter.emit('frame-selected', null)

  }

exports.cleanup = () ->
  for remove in listeners
    log "removing listener"
    remove()
