Decay of the cometary bow shock