Dynamics of gas combustion in a constant volume in the presence of exhaust