Fixed connexions and workaround socket monitor issues