Add support for PRE_SHUTDOWN service control signals

See commit messages for details.