Were the complaints due to the window taking longer than usual to visibly close? It seems to me you could close the window, while leaving the connection active until the confirmation was received, or until a timeout was exceeded (thereby closing the connection automatically).

In any case, thanks for clearing this up for me.