cluster: only close/destroy stream if it has not already been done.