fix mcrypt module deinitialization