Possible bug in handling of an app crash during sync

@torcolvin That workaround worked perfectly! Thank you.