feat: enhance serial connection handling and validation, add reconnect support for serial panes