Resolve circular dependency in KeepAlive objects