Check Semaphore is alive.

Fixes #8082 #8081