Error checking for mutex and semaphore destruction, some comments