Additional cleanup improvements on error conditions (in addition to those in #187597): * Fixed incomplete cleanup in L0Context::init() * Fixed build log leak in addModule() * Fixed context inconsistent state in findDevices() Disclaimer: The base of this PR was generated by Claude and adjusted by me afterwards.