Setting input file flag to false on failures

Setting flag to false if conversion fails