Added prof_on_disconnect hook to test plugins