"Event Shutdown" for latent actions (Delay before exit while call "Event Shutdown")

I’m working with HTTP server inside the game. I need the dedicated server of my game to delete self registration from the list of servers (HTTP Server) when the method (Event Shutdown ) is called, but it happens that the shutdown is very fast and there is no time for the request to the HTTP server to be created and called, modules and subsystems are shut down at the same time as the “Event Shutdown” method is called. How do I add a delay before shutting down the dedicated server (not the shutdown event), the shutdown of modules and subsystems latently?

I want when the user presses “Ctrl + C” it calls the event shutdown , but I want it to take at least 3 seconds before exiting to give latent actions time to be processed.