Add more XSync to clear the queue to avoid crashes with repeated use