Capture OSError when redis-cli is installed

capture the situation this is run on a system without
the redis-cli command installed, subprocess will raise an OSError.