Allow for closing connection

This allows winston.clear and winston.remove to end the stream and not hang.