Shutdown cluster and remove listener
Formatted code