remove extra line on exit (nw)