this.serialPort.flush(function() {
    this.serialPort.close(function() {
      this.emit("disconnect");
      callback(null);
    }.bind(this));