How can I save results of max price in a variable? If you use max price, and get MAX_PRICE_EXCEEDED from the website, the Thread fails with the message MAX_PRICE_EXCEEDED. I want to end the script whenever I get this response, so the program won't go through the same process in the next threads again and again.