better logging for connection errors
0.2.2