completed logic for audio.active in __start_stream()
introduced private function __close_stream()
integrated __close_stream() into terminate()