Unfortunately that's an issue with RPG Maker. It's sometimes just a bit prone to freeze, especially if you tab in and out or have a lot of background programs running.
All I can say is save often, and try and close any other programs if they're open.