Send a message before to shutdown the connection

[#60245696]
Merge pull request #1 from soundrop/fix/flashsocket-shutdown

Send a message before to shutdown the connection