Fixed bug where the audio stream would not be released properly.

Added license