Safety improvements on closing WinUsb connection.