Fixed bug which would lock all syncing tasks if authentication fails