gtk3 sample: make a sample program quit properly

gtk3/sample/misc/cursor.rb:

* go out of the main loop when the window is closed