improve error handling

- show more meaningful messages in connection test dialog
- cleanup method signatures (remove IOException where possible)

Fixes #4