wait for network instead of terminate.