changed DisconnectedEvent to ConnectionStateChanged event, fixed exception while unintentional disconnect in SerialProtocol, implemented connection state indicator in tab header, resolved warnings