code: function cleanup() {
              // Need to do this in order to trigger the corresponding CloseLiveBrowser cleanups required on
              // the native Mac side
              var closeDeferred = (brackets.platform === "mac") ? NativeApp.closeLiveBrowser() : $.Deferred().resolve();
              closeDeferred.done(function () {
                  _setStatus(STATUS_INACTIVE, reason || "explicit_close");
                  // clean-up registered servers
                  _regServers.forEach(function (server) {
                      LiveDevServerManager.removeServer(server);
                  });
                  _regServers = [];
                  _closeDeferred.resolve();
              }).fail(function (err) {
                  if (err) {
                      reason +=  " (" + err + ")";
                  }
                  _setStatus(STATUS_INACTIVE, reason || "explicit_close");
                  _closeDeferred.resolve();
              });
          }
docs: /*
  Finish closing the live development connection, including setting
  the status accordingly.