diff --git a/src/Connection/Connection.py b/src/Connection/Connection.py
index a5c83a0b..c6743f5a 100644
--- a/src/Connection/Connection.py
+++ b/src/Connection/Connection.py
@@ -356,6 +356,11 @@ class Connection(object):
                 message.get("params", {}).get("site"), message.get("params", {}).get("inner_path"),
                 message.get("req_id"))
             )
+
+        if not self.sock:
+            self.log("Send error: missing socket")
+            return False
+
         self.last_send_time = time.time()
         try:
             if streaming: