Fix to reset the client structure after a command is handled.

Once the command is handled, the client structure should be reset, so
that future commands can be handled.