Code gardening and flagging child processes as invalid