make sure GenericWriteTask is only executed once, suggested by https://github.com/mtotschnig/MyExpenses/commit/cb87f6e5f6258eff2b11f7e0695f17dfeca9a133#commitcomment-5880040