exit redis method if not connected