Cancel all

Fix cancellation when scanning folder.
Limitation: The scanning has to finish before the method returns.
This will have to be reviewed when we improve the cancellation i.e. during upload, processing etc.