streamlined runCrista output
added exit calls in case of malloc failure