Added exit on Event::Closed