Added client_recv function to read messages from clients. It is not being closed properly
Changes to client listener loop
Client receive thread now works and finishes on request