The company said it plans to close 400 smaller offices after it lowered its sales and profit margin outlook for the rest of the year. H&R Block's stock plunged nearly 20% Wednesday.