Change from distutils to setuptools
Fix AttributeError when closing unopened _SyncronisedSocket