fix(update): backup atexit() function before forking

So that parent process cleanup is not duplicated in child process.