Try catch in fragments