Handle exiting interactive git mode better.