Fix exit procedure when plugin insertion failed

* Do not destroy the plugin twice
* Do not try to watch child if pid == 0
* Reset source id after removing it
2 jobs for !49 with fix-plugin-insertion-failed in 4 minutes and 50 seconds (queued for 1 second)
merge request