multi-threaded relay guide example.
fixed an issue in the socket that it wasn't getting its lifecycle properly managed by the context when closed directly.