send closing frame validly
Merge branch 'release/2.4'