Ensure Body#close is called on exception.