updated leave so the program terminates when the manager leaves