Stop clients crashing from failing SSL handshake