catch exceptions while populating gems