Handle any error when loading profile

@vparfonov @evidolob