Stop Geoserver before deploying a new version of Geoserver.