make sure pidfile is removed