Make the closed-socket test more robust.