print error messages if unable to connect to redis. Plus some minor fixes with redis communication