cleanup the readline loop on the ansible process