improved background handling of git ui processes