Add tidy up option after failed update.
Merge pull request #900 from gontofe/OTAfix

Add tidy up option after failed update.