Modified files in the ChatClient project so that an incoming message does not interrupt an unfinished outgoing message in the console.