more attempts to get the orderly shutdown of the SDshell