update check_raid.sh to return instead of exit