monitor: fix stuck process