Replaced Task.save() with Task.safesave()
Tried to fix issue with syncing to often with taskwarrior