Handle Connection.NONE for offline

Fixed Connection.NONE not being handled as an offline state.

Also corrected a typo `s/Sate/State/`.

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?
Merge pull request #27 from robations/patch-1

Handle Connection.NONE for offline