dereferencing on lua stack on finishing close, so that gc can collect memory