deactivate plugin if connect_and_run returns an error