close the serial interface in SerialInterface destructor