Remove old tmp files without errors, fixes #796