#237 avoid double queue_destroy calls