Handle Connection.NONE for offline

Fixed Connection.NONE not being handled as an offline state.

Also corrected a typo `s/Sate/State/` and suggested `===` for string comparisons.

In technical terms, Connection.UNKNOWN doesn't mean offline, literally meaning we don't know, but need more thought on how to handle this. Throw an exception?