Package cleanup implements simple shutdown/defer functionality for servers