Closing windows is done with delete(), not close() ...
https://bugzilla.gnome.org/show_bug.cgi?id=726352