A little tricky to get right, but it works pretty well.
TODO: Do something with --monitor.
I initially wanted to avoid the exec() and just let Perl continue
running the rest of the script after fork(), but that runs into the
problem that perl really doesn't like it when you fork() in BEGIN.