protect against being offline, metered and roaming

Change-Id: I65a6831e43ef03c779f54d6775f6c60599694b0b