make ARM work on any Closeable