Better output and slightly earlier termination.

Implemented using another shared process value.