Added check to only send a request to cancel a file if the client is currently downloading.