in reply to How to close a telnet connection when using strict
It's not the "strict" problem seems that your $pro is undefined