Shared memory releasing is more robust.