Moved loop inside a try/finally block to make sure this.actual is
restored, and also fixed spacing.