http://localhost:4444/selenium-server/driver/?cmd=shutDownSeleniumServer
The http get task will do for this.