fixed keybase error handling during encryption.