The shutdown db mode is special. It should save all dialogs regardless of flag. On startup, all db entries are deleted again in the database.
I did not investigate myself, but based on his descriptions dialogs that are created before the first restart is not kept during the second restart since they're no longer marked as "changed" or "new".