Wrap resource params in try/except.