Improved manager, added spinwindow deletetion and event loop end management