fixed windows crashing on multiple connects - #448