Make sure system exits on main thread loss