Fix crash when cancelling transfer and file was already downloaded, this fixes #4