   }
 
 exports.cleanup = () ->
-  removeBreakListener() if removeBreakListener?
+  for remove in listeners
+    log "removing listener"
+    remove()

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

  WatchPane.render = (state) ->

  LocalsPane = () ->
    state = builder2.root()
    refresh = () -> TreeView.populate(state)
    listeners.push eventEmitter.subscribe 'frame-selected', (frame) ->
      log "Frame selected"
      builder2.selectedFrame = frame
      refresh()
