Made LazyTable autoClosable for better api. And added a test.