Add the ability to close the connection.