The server should shut down correctly now, just don't open in IDLE