Added reset() to client (changes the state from WAITING_FOR_ACK to the
state the machine was in before, like CONNECTED or SENDING)