handle failures so we dont take down the rest of the app