Usability improvements

Retry flashing until successful due to "device or resource busy" error.
Also wait after flashing before testing.
Add beeps