Split try/catch block between profile loading and Context setting