I would like to suggest a backup-feature for the IDE, which stores unsaved scripts/js-fx/video-processor stuff temporarily in the background.
This would prevent loss of changes, when Reaper gets closed suddenly by some event(crashes, power outage).
This has happened to Coachz in this thread:
https://forum.cockos.com/showthread.php?t=220846