Load plugin main and events separately.