Consolidate interrupt handling logic

Moved interrupt-based shutdown logic into Session to minimize non-entrypoint related code in Application class.