Revert "removed connection close test"

This reverts commit 69cffec46f578ed0702903a35c33d9e946e56fbf.