public static void safeClose(MemoryFile mf) {
        if (mf != null) {
            mf.close();
        }
    }
Closes the given stream inside a try/catch. Does nothing if stream is null.
argus-apm/argus-apm-main/src/main/java/com/argusapm/android/debug/storage/IOUtil.java