Well, it shuts down just fine with `kill -s SIGTERM` and it's windows equivalent w/o this code. I guess SessionManager controls shutdown when those signals are received.