use correct shutdown call signature to fix real safari hanging on DELETE session
fix #3244