Introduce basic task states and process groups, parallelize shutdown.