Adding a way to do a graceful shutdown of the server.

This code path is not being used right now as there is no way to select this start up class.