Node.js file crashing

I am using a node.js file in server side for a multi-player game. The file crashes once in a day or two.

  1. How can I prevent the file crashing
  2. How can I save the data while crashing?
  3. How can we access the data when it restarts?

Its running in server using forever. It restarts and I am not recieving any error.