Merge pull request #10 from damienlevin/master

Fixed issue where calling newSocket could be done before the initialization of the SocketManager
Fixing and simplify synchronization of interrupt sockets