Fixes ZEN-15839

need to check for encrypt/decrypt errors