Better logs on connection errors