Commit into correct branch.
Added support to notify the java app when a serial port has been closed.
Or removed like in the case of a USB attached device.