Safer plugin initialisation.