Close persistent sockets when they are judged to be dead.

When a persistent socket is judged to be dead, they are now closed
in addition to being removed from persistent storage. This fixes
a broken zend test.