catch exception for crypt module on windows

@UtahDave thoughts?

closes #14771