If connection refused to NB API, log if debug logging is enabled

Useful in case of certain network issues, like enabling Droid Wall and
forgetting about it.
Merge pull request #1 from snadarat/NameRefactoring

If connection refused to NB API, log if debug logging is enabled