removing var/run
improve shutdown