modify the shutdown feature to stop the server