Kick Players from server

I’m working on an online game, and I need a way to kick the Clients out from the game if the server goes down, can anyone tell me how I can do this?