Use reference to catch exception.