Shutdown the agents at the end since we want to close cleanly.
Added the 4clojure stuff.