handle crypt() errors