bug22497: nfs in non-service mode, log file closing problem

Fix from John Peterson via github.  Manually added from
pull request: https://github.com/franzinc/nfs/pull/7