Let remote clients properly shutdown the pipline and lightMerger.

The pipeline and the light merger have both a thread pool which needs
to be manually disposed. If they don't get disposed the game won't
exit properly.