Leonardo detected and 5 secs later not detected

If i understood well you said that I need to burn something (e.g. blink) while the leonard is known (the 5 seconds)...
I tryied to click the burn button right after connecting usb cable but the 5 secs are not enough to write the image in the leonard and the burn process is aborted

Alex