Don't just swallow all exceptions like this - it hides real problems.

If there's a particular exception that happens here, either catch just that one, or (probably better) try to avoid it getting thrown - throwing and catching an exception is usually quite expensive, so should only happen in truly exceptional cases.