Backup and cleanup before reimaging