sig-monitor: Fix exit in signal handler