Fixed nimbus client close issue.