Throw an exception when a shared service loops on itself in its initialization.