map and list ind MemoryObserver class is now allocated to heap because of valgrind errors. Maybe no longer needed
Added a short sleep to Monitorworker so all threads can finish. Recheck

Signed-off-by: Christian Rapp <crappbytes@gmail.com>