Made changes to add support for aborting transactions and testcases for
the same.