Offline mode behavior

Any network related task now fails immediately in offline mode.