Reintroduced the checksynchronize call so as to avoid leaking threads.