initial infrastructure for waiting to close until all connections open