fix releasing the pipeline twice if more than one error is triggered before the main thread can release it.
disable calling gst_deinit() as it may stall when an error was encountered previously. may need some investigation..