C-d to kill current buffer (works well with ansi-term)