Make Chat Panel closing no longer exit whole app. Fixes #184