Add try/except to module invocations