Made server message pipe threadsafe