Dont attempt to import redis before checking it is listening