How to Recover from Ransomware Attacks and Prevent Future Threats