catch exception for crypt module on windows

@UtahDave thoughts?