Improved shutdown and  Little better code
Update gui every half second additional to once per packet received