Make sure that the pager terminates before the process that feeds it.