Added catching error trying to get required modules