fix(main-window): do GTK events before exit
fix(main-window): do GTK events before exit

Prior to this commit, the main GTK thread may have been stopped while
there were still outstanding GTK events.  In some cases, this may have
lead to the UI freezing while trying to quit the application.

In this commit, process outstanding GTK events before exiting.

wheeler-microfluidics/microdrop