* fixed application crash on Shutdown