Closes bitmap stream.