added healthcheck clear when stream closes