Prevent deadlock by checking if the client is closed before trying to acquire the senderlock.
Created by: PeskyTheBear
Summary
Fixes #561 (closed). Added a check to WebSocketClient::SendMessageAsync(), which checks if the client hasn't been closed, to prevent the issue raised in #561 (closed).