[package] [mediacenter-osmc] on egl tidyup: make sure we fclose and don't try and fprintf if we can't open the fp