Hopefully this will catch most of the use cases where a write operation is attempted after the connection was closed #73