Before revision: This has a drawback that if the process crashes and fails to clean up shared memory it will stay until system
After revision: shutdown.This has a drawback that if the process crashes and fails to clean up shared memory it will stay until system