[[ Bug 13510 ]] Make sure shutdownrequest is only sent once.
Merge branch 'bugfix-13510_2' into develop