msg_error: do not kill PPID; sometimes it kills a wrong process.
Make sure the signal handlers only run once.