PCT-1045: Timeout closing websocket