Report why a plugin failed to load

This gives a bit more information relating to #510.