replace with Closeable.