close the serial file descriptor in destructor