Tx2 r32.3.1 gst_element_set_state (mPipeline, GST_STATE_NULL hangs

gstreamer application hangs with setting pipeline to NULL, this is recommended before terminating the application.