1. add timer to minitor heart beat.
TODO: if the timer is 5s, process will crash.