Handle file IOErrors