Persist and load queue at startup/shutdown