Got the narrative_shutdown command working, added hook to the nginx config.