Returned socket.close() on DropOSProtocol. It really is necessary.
Implemented a spinlock to keep the client waiting for the server to send
its own index.