ofGstUtils: close pipelines properly by sending and waiting for EOS