Parser and thread exit now works.