If script have an error 3 times than end the thread

Support