shutdown 0.5.0

shutdown can be used to gracefully exit (part of) a running program
Documentation