I have gone through several crashes where databanks for some custom tasks were not synchronized / saved. I then realized it was happening because my synchronizing is set to every 10 minutes, but these tasks finished under 10 mins.
Proposed solution
For every task:
If user has selected some synchronization option (ie: they did *not* select ‘never synchronize’)