Improve clarity around try/catch exception handling.

Replace horrible `err` shadowing with better `ex` naming for a catch's
exception argument.
Add more divider comments.