Pipes integration test: the main now sleeps 10 seconds before exiting.

This leaves time for the thread to complete.