ref.getQueue().cancel(theTx, ref);
}
//if we failed don't restart as an attempt to deliver messages may be made before we actually close the consumer
if (wasStarted && !clientFailed)
{
theTx.addOperation(new TransactionOperationAbstract()
{
@Override
public void afterRollback(Transaction tx)
{