Termination variable to cleanly exit