Would be good if there was exception handling at the com thread in case the port is removed "violently", as happens when you remove USB EdgePort or any other device that acts as a serial port. Currently the behaviour seems to be complete random from just a basic exception to process kill.