fix emergemanager memory leaks