Reset event queue on app close.

Closes #254. Closes rstudio/ggvis#54.

Actually ended up being even simpler than I thought.