make it possible to debug connection errors

if _connect fails, the reason will be hidden because it doesn't ensure
that hasattr(self, 'connection_errors') before using it.