force shutdown socket

For the shutdown of the socket used for the web socket client.