Support for closing the connection.