Elegantly handle failures in third party platforms or code