bug where losing internet would cause app exit