raise an exception when crypto module fails to import