improved chat stability

added exception handling for most chat scenarios; improved program
stability.