dispose
Dispose of the transfer. This will release the C++ reference to the instance. Call this manually to abort a transfer.
Note: this operation is not idempotent. Calling this multiple times will throw an error.
Throws
if the transfer has already ended.