chat server tested for message, exception and when exits