Fixed catching socket.error exceptions.
Added message display functionality to chat client.