Added a very primitive watchdog mechanism in main.

After fork()ing children, keep checking if one child exit() or core
dump. We just respawn it.