Fixing Typing Indicator Bug & Added Error Handling