I moved it around a bit when I wasn't sure if it was going to be more first class or special. It could live here to simplify the ApplicationShutdown logic.