added shutdown when there was an update