catch file broken exceptions