ISemaphore cleanup