Process lifecycle consistency

This is an improvement in reliability, and the code is ready for review.