Add finish() method to Connection.