refs #6484. Catch exceptions by Ref.