Fixed clnt shutdown issue.
Add closed predicate.