$oldName parameter to UserLogoutComplete hook call was missing.