Calls the write_message callback on the next Tornado I/O loop iteration (thread safely).
Error logging on WebSocket close.