cleanup unneeded semaphore calls