We've long wanted this one - you screw up and hit enter on g.V() on a billion vertex graph. Only thing you can do to stop it is kill the console. Intercept ctril+c and translate that to an interrupt of the main thread. If the main thread is doing something that respects a call to Thread.interrupt() then the process will stop and return control to the user.
- links to