core: cleanup plugin load

Change-Id: I8d0c7ae371f853b581a33a68718358e62c6c763c
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>