I resolved this issue:
1. The server ignores the fact that it did not receive the ping when expected, and keep the connection open.
2. As part of the client connection class on the server there is a health timer and ticks every 10 seconds an sends a single byte to the connection
3. If point 2 fails then I know the connection is dead, and I close it.
This was implemented this morning and seems to be working quite well.