[checkmk-commits] Fix test and improve exception handling and data collection in tcp.py