send closing frame validly
Merge branch 'release/2.4' into develop