Test for proper connection close