As you can see in the source code of transaction, it will rollback the transaction if thread is aborting:
if Thread.current.status == "aborting"