Added the Wait method for media encoder job.