Added redis publish exception handling