Close any connected chat web sockets.
After close() is called, only usage of Chat.events is allowed.
close()
The state is moved to Prepared.