Fix up restarting and cleaning up children.