Software attack protection and recovery via transactional application self-healing