fix lock
Fixed mismatches on error on connection.
Some fixes

* ROI display bug when x-axis is in energy
* ROI input UX improve
* Default port name on start-up
* Added Logging