Potential race condition when interrupting a transfer
When interrupting a transfer, the state of the state machine is not changed immediately. Under certain circumstances, this allow the transfer to still progress while being stopped at the same time, which could cause problems.