Shared memory now removed correctly prior to program termination.