fix unsupported port.close