exit if out of memory

Link: https://github.com/GeneAssembly/biosal/issues/408
Signed-off-by: Sébastien Boisvert <boisvert@anl.gov>