Convert SocketManager to be instantiable instead of a singleton