Cleaned up /purgeall and /halt