Handle exceptions in Redis