Added logging of cluster state to a file and only shutdown cluster nodes after 45 minutes into hour.