njoy: fix crash on exit