Fix for #33

* prevented potential NPE
* added dialog box for sonar connection errors

Issues: #33