fixed up server program.  Still crashing on client exit