foo() will be called on shutdown... foo