close method
void
close()
Closes the Producer.
Implementation
void close() {
if (closed) return;
_logger.debug('close()');
closed = true;
_destroyTrack();
emit('@close');
// Emit observer event.
observer.safeEmit('close');
}