Sleep scope-checking thread to improve stability