Refactor rescue behavior.