Cosmetic changes.
Added handler for situation when sync canceled.