+ Changed call from core flush to core close routine. This flushes waiting
queues as well as the messages.