diff --git a/epdb/telnetclient.py b/epdb/telnetclient.py
index <HASH>..<HASH> 100755
--- a/epdb/telnetclient.py
+++ b/epdb/telnetclient.py
@@ -45,6 +45,8 @@ class TelnetClient(telnetlib.Telnet):
 
     def ctrl_c(self, int, tb):
         self.sock.sendall(IAC + IP)
+        self.sock.sendall('close\n')
+        raise KeyboardInterrupt
 
     def sigwinch(self, int, tb):
         self.updateTerminalSize()
close connection on ctrl-c