[ros-diffs] [pschweitzer] 58701: [TELNET] Don't attempt to close undefined handles. Also properly set them on failure as "the contents of the output parameters are indeterminate" on failure.