diff --git a/conversejs/utils.py b/conversejs/utils.py
index <HASH>..<HASH> 100644
--- a/conversejs/utils.py
+++ b/conversejs/utils.py
@@ -41,6 +41,8 @@ def get_conversejs_context(context, xmpp_login=False):
     bosh = BOSHClient(xmpp_account.jid, xmpp_account.password,
                       context['CONVERSEJS_BOSH_SERVICE_URL'])
     jid, sid, rid = bosh.get_credentials()
+    bosh.close_connection()
+
     context.update({'jid': jid, 'sid': sid, 'rid': rid})
 
     return context
Closing bosh connection after getting credentials