added support for cancelling transfers

R? @jimdanz