Continuous calls to write() after error may cause memory leaks.
There no checks present in `write()` procedures for errored transport.
https://github.com/status-im/nim-chronos/blob/master/chronos/transports/stream.nim#L1576