fixed bug around not removing graphs from local store when closed