Stop event trigger on error