public function remove()
{
if (!shm_remove($this->memory)) {
throw new StorageException("Could not release shared memory.");
}
$this->memory = null;
if (!sem_remove($this->semaphore)) {
throw new StorageException("Could not remove semaphore.");
}
$this->semaphore = null;
}