win32: clear connection data on close

This is the winhttp version of #2719 .