Capture erorr and exit in case of auth failure while connecting to CardDAV