unix: add SIGQUIT signal handler to exit gracefully (and save off nvram)