Out-CaasWaitForOperation and fixes
Small fix...
Code analysis fixes