Don't write to socket from non loop.run thread