fixes order of ops errors for exit/shutdown in both encrypted/nonencrypt...