         mic.removeEventListener(StatusEvent.STATUS, onMicStatus);
         mic.removeEventListener(SampleDataEvent.SAMPLE_DATA, onMicSampleData);
       }
+      this.currentState = 'stopped';
+      this.callAPI(EVENT_AUDIO_TRANSMIT_STOPPED);
       conn.close();
     }
 

    }

    public function onClosed(event:Event):void {
      if ("playing" === this.currentState) {
        this.currentState = "stopped";
        this.callAPI(EVENT_AUDIO_TRANSMIT_STOPPED);
      }
    }

    private var mic:Microphone = Microphone.getMicrophone();
    private var _microphoneVolume:Number;

    private var currentState:String = 'stopped';

    public function AxisTransmit() {
      /* Set default microphone volume */
