Only attempting to rollback transaction if transaction is active