added a try except clause in the parallel consumer