async fn check_for_shutdown( r: &Reply, allowed_shutdown: bool ) -> Result<Reply, Option<Reply>>
this handles a shutdown CHAOS request