That does sound frustrating.
What exactly did you do, and at what point after that does it hang?
When you say “hang”, what does that mean? Does the command line process stop responding even to ctrl-c, but nothing else works? Or does everything become unresponsive? When that happens, does the mouse still move?
When whatever happens happens, is it all suddenly and at once, or does it get gradually worse (even if quickly so)?
What is the hardware you are running this on? What else is going on on that system?