Fix crash when exiting long, paged outputs

  Fixes #26.
Merge pull request #76 from SUSE/pager_crash

Fix crash when exiting long, paged outputs