return from functions upon error, exit upon failure to connect to redis