Update exchange.py

add exit() if ask thread not started