Working now up to executor termination.

Termination either quits the entire program or segmentation faults
at the exit of the thread.