call "mcrypt_generic_deinit" to fix memory leaks