SerialPortHandler improvement

minor changes
Solving freeze issue on exit

But not root cause
See #3
Auto min/max on graph curve