Improved error reporting when plugin fails loading