fnwrite(): call fclose() separately, found by Coverity Scan
fnwrite(): call fclose() separately, found by Coverity Scan

If any of the fputs() calls fails we will not call fclose() and thus
cause resource loss.

Signed-off-by: Joachim Wiberg <583c295fd7602c168ad814279bbc3894ba65f5d6@gmail.com>

troglobit/finit,troglobit/finit