fixing the removal of application when undeploy it
fixing concurrent modification issue and destroying cluster monitor upon the termianted event