double press enter closes the program
when the client is disconnected,the server closes socket
new file added for closes the client double enter but not yet completed