Added a close() method to the tap streams.