Serial_comm cleanup