Ensure defunct connections are completely closed (JAVA-394).