Fix some segfault when use Glib>=2.40. Issues #62 and #68
* Upgrade requirements Glib >= 2.32
* Use the introduced "shutdown" signal to safely close the Gtk side.