Added Xlib flush after window closing.