Handle pygame events
Change exception control flow