failure check sem_close, sem_unlink
SIGTERM instead SIGUSR2 as stop signal