Log stats.  Be more careful not to use all  memory and hose the machine.