Added support for canceling transfers

r? @michelle