added optional stop for endTransmission