Added AutoCloseable.