Added a workaround to the unstable connection, socket will now be created and destroyed on every http transaction