SocketManager minor revisions pertinent to thread stack corruption