INTEXT-47 WebSocket PING Polishing

Use last receive time (instead of last send) because mostly
write sockets (from the server perspective) may still time out.
INTEXT-45 Fix INT-2936 Work Around

When not using NIO, could get a message
"Max supported length exceeded" if the
socket is closed abruptly.