Improved factory stop process to look for orphan children after factory stops