add try/except in cluster module