you have to clean up the semaphores/shared segment with ipcrm