Fixing issue of not shutting down cluster server