update websocketpp
correct some win32 issues
close websocket properly
join ws thread only if we reconnect after closing