handle plugin error