Don't wait for socket if disconnected
Don't try and close free'd socket
Add COPYING and README