Only wake menu thread when last process exiting