FileTransfer: remove the state machine