Add try/catch around profile reading