Add close method to XBeeSerial