<div dir="ltr">Usually it is done via putting monitor on process pid and waiting for DOWN message</div>