Programmatically kill uvicorn

Hey folks!
Is there any way of programmatically killing an Uvicorn server?
Thank you very much in advance!