Implement graceful shutdown from classic watchdog See changes and notes on this commit: https://github.com/openfaas/faas/commit/de2c74fcdb88675f9e1e46e307d8a9852eca262d This should be largely a copy/paste exercise but will require testing.