Better handling of the situation when plug-in does not have main class