Fixes excessive closes in accept()