Preventing failures by syncing transactions