A Sheffield restaurant agreed to voluntarily close after it received an abysmal food hygiene rating.