Updated forEach with forEachWithCallback at destroyOtherConnections