how can i find out what loaded in the memory and then be also to close it