Trac 75: fix uxexpected ssl connection close