code: func (c *Controller) OnFinalShutdown(fn func() error) {
  	c.instance.onFinalShutdown = append(c.instance.onFinalShutdown, fn)
  }
docs: // OnFinalShutdown adds fn to the list of callback functions to execute
  // when the server is about to be shut down NOT as part of a restart.