fix: A monitor app bug when a process ends before restart
upd: doc