Only close websocket disconnected chan if still open.

A channel cannot be closed multiple times, so use a select statement
to only close the channel if it can not be read from.