add handling for rvmsudo and make it so on interrupts it wait for subprocesses to finish before exiting