There's no need to close an invalid FILE*
Android doesn't have /proc/modules, and darling segfaults instead of
reporting errors elegantly. On BioniC, fclose(NULL) leads to SIGSEGV.
https://android.googlesource.com/platform/bionic/+/a8f9c8069ec45117393bc3abca3379cf62b1124e/libc/stdio/stdio.cpp#374