Event switch now processes all events in a frame
Destroyed objects of SDL on quit.