bug fix: keep waiting if exiting process is not a managed process