Need to stop the Execution of the Test suite when we encounter a Test case as Fail or Error

I am not sure how to solve the issue.

when i am running my Test Suite when the Test case is failed run should stop
I have tried Annotations like TearDownIfError, TearDownIfFailed, but next test case is getting executed again. kindly let me know how to resolve this issue.

See my solution: