Fix infinite loop where we're waiting for ^C