Don't write to the connection if it has already disconnected