add shutdown control in priv