Initial AutoCloseable implementation