Previously we loop through local ports every second, this patch improves the strategy by retrying only just disconnected emulators. Bug: 26468076 Bug: 19974213 Bug: 22920867 Change-Id: I43ccb746922d104202b0f81a3d163d850bbc890e