Tests whether the transaction is in progress before rolling it back