tests: eof tests hangs on some systems

Clean up after the forkchain test by forcing the top level process to
exit.

On some systems, the eof test would hang while forcing the process to
exit. Not sure why, this cleanup just covers up the problem.