I think the LiveInspector is just issuing a local window.close() via javascript on the browser.  This never translates to the native call to closeLiveBrowser() in the app-shell code, unless it's buried somewhere I haven't looked.  In any case, your solution would suffice. :)