Stop the update check loop as soon as the update is detected.
Add documentation.