Adding diagnostics posted to gist to debug out of memory

Now closes spawned commands
Adding diagnostics posted to gist to debug out of memory

Refined initial cmd displayed