Added try/except around dumps to hint at dill.