delete shared memory segments after AMF dies; this stops shared memory corruption from causing a problem in a subsequent run