I'm using [sidekiq](http://mperham.github.io/sidekiq/) in a rails app to send some emails asynchronously. How can I ensure that the code (the job itself) is executed even when the Redis server is not running.

```
CommentsWorker.perform_async(@user.id, @comment.id)

```

In the comments worker, I'm fetching the user and the comment, and I send an email:

```
def perform(user_id, comment_id)
  user = User.find(user_id)
  comment = Comment.find(comment_id)

  CommentMailer.new_comment(user, comment).deliver
end

```

If I stop the Redis server, my app raises an exception `Redis::CannotConnectError`

I still want to send that email, even when the server is stopped, using old fashioned sync code. I tried to `rescue` from that exception, but for some reason it doesn't work.