Add a close() method to List

This is probably useful in general, but is especially helpful for cleaning up after integration testing.