Record auth failures for CURL-based protocols

Not strictly necessary for FTP, but useful for SFTP