How to Fix the "Semaphore Timeout Period Has Expired" Error