socket.close() was modified in Python 3.6 to raise OSError on failure: see bpo-26685.
Attach a file by drag & drop or click to upload