diff --git a/web_pdb/__init__.py b/web_pdb/__init__.py
index <HASH>..<HASH> 100644
--- a/web_pdb/__init__.py
+++ b/web_pdb/__init__.py
@@ -90,12 +90,6 @@ class WebPdb(Pdb):
 
     do_q = do_exit = do_quit
 
-    def set_continue(self):
-        """Gracefully close console if continue without breakpoints"""
-        Pdb.set_continue(self)
-        if not self.breaks:
-            self.console.close()
-
     def get_current_frame_data(self):
         """
         Get all date about the current execution frame
diff --git a/web_pdb/web_console.py b/web_pdb/web_console.py
index <HASH>..<HASH> 100644
--- a/web_pdb/web_console.py
+++ b/web_pdb/web_console.py
@@ -29,6 +29,7 @@ from __future__ import absolute_import
 from __future__ import print_function
 import sys
 import time
+import weakref
 from socket import gethostname
 from threading import Thread, Event, Lock
 try:
@@ -81,7 +82,7 @@ class WebConsole(object):
     A file-like class for exchanging data between PDB and the web-UI
     """
     def __init__(self, host, port, debugger):
-        self._debugger = debugger
+        self._debugger = weakref.proxy(debugger)
         self._history = ThreadSafeBuffer('')
         self._globals = ThreadSafeBuffer('')
         self._locals = ThreadSafeBuffer('')
Uses weakref for debugger instance in WebConsole class