code: function _cmdAbortDownload(downloadId) {
      if (!pendingDownloads[downloadId]) {
          // This may mean the download already completed
          return false;
      } else {
          _endDownload(downloadId, Errors.CANCELED);
          return true;
      }
  }
docs: Implements "abortDownload" command, synchronously.