shutdown.sh: correct return code of _check_shutdown()

fix commit b09faad8779f5579, which reversed the return code