RegisterApplicationRestart: Registers the active instance of an application for restart.
We already handle WM_ENDSESSION cleanly: r24687.
this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/2510