Fix registered plugins being forgot when switching connection
Add test for failing notifier
Fix plugins registered twice
More work on events