app: shutdown metadata-manager after GTK+

This avoids a crash when GTK+ still holds a reference to a GeditDocument
for the clipboard.

https://bugzilla.gnome.org/show_bug.cgi?id=736591