Added error handling in GenerateVideoServlet