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

Fixed #20