Add thread task to check ps command regularly