Add exit/pause-on-error options.

And some setup for exec-on-error, that isn't hooked up yet.