Flushes the queue bye cancelling all operations