{
// This is to avoid a race condition where messages are depaged
// before the commit arrived
while (running && !pageUserTransaction.waitCompletion(500))
{
// This is just to give us a chance to interrupt the process..
// if we start a shutdown in the middle of transactions, the commit/rollback may never come, delaying
// the shutdown of the server
if (PagingStoreImpl.isTrace)