[FOLD] ssl shutdown fixes