MOSYNC-3271. Fixed bugs related to cancel download issue.
MOSYNC-3271. Separated internal from external events.