Added plugin crash detection