Added missing dispatcher queue flushing