Waits 100ms rather than a second between checks so closes at a more reasonable speed