Added NSError to the synchronisation completion block, removed UI dialogs from synchronisation class.