Detect USB com port removal

Use WM_DEVICECHANGE to detect USB COM port removal and disallow further use of the COM port when this happend.