Execution of a flow before NR shutdown?

It is part of ongoing work that the node.done calls are part of. See Use of msg, send, done in node that can also be triggered by button & more than one input msg to one logical process, when to call done?