Closes the web socket.
The termination code.
A reason given, why the websocket has been closed.
See Implementation
Closes the web socket.