Handle possible error when including plugins