Flush connection after setting WM_DELETE_WINDOW property. Fixes #9