xup: call shmdt on disconnect