Window poll events and close.