Stop refreshing if we're done.

Fix #172.