Don't close an already closed connection.