fixed terminal cleanup on pager (less) exit