handle reinstalling the pid has exit

handle reinstalling the pid has exit