Fixed unexpected behavior when statement and rollback throws exception