Take the system offline
When you take the system offline, the system does not queue any new work or transactions. The state only allows maintenance tasks to run. By default, the system finishes the queries and transactions that are active at the time the offline command is issued.
[nz@nzhost ~]$ nzsystem offline
Are you sure you want to take the system offline (y|n)? [n] y[nz@nzhost ~]$ nzstate
System state is 'Offline'.You can use the -now option to force a transition to the offline state, which causes the system to abort any active queries and transactions. As a best practice, use the nzsession show -activeTxn command to display a list of the current active transactions before you force the system to terminate them.