Try not to wipe cache and user data when flashing through Flashtool.
If you can't boot to system without wiping userdata, the best way is backup via Titanium Backup before unlocking bootloader.
If I'm not wrong, Internal SD wouldn't get wiped, only /data partition. But it's better to take backup of your Internal SD first.
*Sorry for my bad english