When retrieving available serial ports using the Rxtx library (see second example), the close() method will block, even if the port has been successfully opened
close()