during engine stop, the hazelcast executor must be shutdown only if there are no more cluster members
@@ -85,7 +85,10 @@ public class ClusterNode {
// // Ignore exception
// }
+ /*shutdown the executor only if this member is the only member left in the cluster*/
+ if (hazelcast.getCluster().getMembers().size() == 1)
forcefullyClose(executor);
+
forcefullyClose(hazelcast);
// Close engine resources
