use def-rescue instead of begin-rescue

It reads a little nicer. e.g., https://github.com/rails/rails/commit/70ae89c321444eef42c0c011b522f926250e7acd