Bug 731389 - gimp-edit-copy causes assertion failure on exit

Shutdown the clipboard earlier at exit, it runs quite some code on
storing the copied buffer.