Fixed race condition in concurrent execution for MongoAscoltatore.
Do not loop if the MongoAscoltatore is closed.