Make unregisterPlugin also delete associations