add client.Stop() to flash/wait. Closes #7