DELTASPIKE-399 Make sure the streams are closed in case we're not returning them back to the user