correctly determine if a (un)load failed and set the GError if necessary
correctly determine if a (un)load failed and set the GError if necessary

tieto/gplugin-pkg,tieto/gplugin-pkg,tieto/gplugin-pkg,tieto/gplugin-pkg