added try catch management for cmaes 
minor fix