Improve log in case of connection errors