Sane transaction handling