close serial port in control panel destructor