[cluster] fix tomcat shutdown correctly