ws
Fix resource leak

This was exhausting file descriptors.