avoid issues when socket.close is called from a __del__ method.
Attach a file by drag & drop or click to upload