fix an issue where closing a TCP tunnel caused an infinite loop of errors
fix a small print formatting in displaying the metrics reporting interval