Send a message before to shutdown the connection

[#60245696]