Implement AutoCloseable. #2