Refactor mmock cluster and failing cluster. Add checks for channels being closed.