Added extra stuff to the memory cleanup in servermonitor