Download service fixes

Cancel button should now work all the time.
Possibly fixed crash now I’m catching the nullpointer exception.