Bug fix---create environment for opened LUA_FILEHANDLEs with __close function