check for terminated SSL