Gracefully Stop Bot
So, if I have a bot running on a server, how do I stop the bot's execution gracefully? I want to stop the bot from running, have it disappear from the server, and be able to execute code afterwards without any nasty exceptions or fatal errors. I would like to do this several times, meaning after one bot stops, I want to start another.
On a related note: how do I gracefully kill a server (instance of IUT2004Server)? Let's say I launch a server to play a single match, and that match has a timelimit (defined in the UCCConfigWrapper). When the match is over, how do I 1) sense this from within Pogamut/Java, and 2) kill the server gracefully before it starts another map?