Fix plugin reference leak in remove_all_plugins
Ensure to release all RED Brick API objects before disconnect