write term.normal on exit