Fix null pointer on exception.
Reencrypt env vars.