Make BrowserObj.closeTab() not fail when shutting down

When shutting down and BrowserObj.closeTab() is called we see error messages
because the tabbrowser has already been destroyed.
add restart/shutdown support for marionette
Bug 923606 - Add Marionette tests to cover startup/shutdown paths