Connection is closed upon commit or rollback