Fix some possible crash when calling EE.close before Module.close or vice-versa