Added chat crash protection.
Added chat crash protection.
gui stuff