Corrected an issue with deleting input streams.