How do you keep blender from shutting down?
If Blender crashes, it's a bug in Blender (or you're doing really crazy things, but let's not assume that). Please help us Blender developers to fix this bug.


Investigate how you can make Blender crash as fast as possible, and as reliably as possible.
Think of a way to describe the bug you just found.
Search for the bug, to see if someone else already reported it.
If it hasn't been reported yet, report your bug. Be sure to include an example blend file and the steps required for the developer to make Blender crash.


Especially this last step is important. If the developers can reliably make Blender crash the way you made it crash, it will help tremendously in getting things fixed.