Throw an exception when a shared service has a circular reference to itself.