BRS: Fixing the stupdi shutdown logic. Need to be more careful