Stop output threads before setting temp controller state to idle to
prevent lockup when both outputs are active.