shutdown 0.4.1

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