Commented out semaphore unlink and close for debugging.