Added "close $msock" to any tests that opened one.