Add the notify thread stop on main exception