adding retry logic for starting emulator