Improved connection error messages (fixed issue #60)