add java.lang.AutoCloseable to native store internal classes that
implement a close method