code:                 public void run() {
                      synchronized (context) {
                          File file = context.targetFile;
                          if (file != null) {
                              file.delete();
                          }
                          // Trigger the abort callback immediately to minimize latency between it and abort() being called.
                          JSONObject error = createFileTransferError(ABORTED_ERR, context.source, context.target, null, -1, null);
                          context.sendPluginResult(new PluginResult(PluginResult.Status.ERROR, error));
                          context.aborted = true;
                          if (context.connection != null) {
                              context.connection.disconnect();
                          }
                      }
                  }
              });
          }
      }
  }
  