 During the war Gray was badly affected, losing two of his three sons towards the end of the conflict.He died in Cambridge, aged 79.Among his compositions are liturgical music for Morning and Evening Prayer and the Office of Holy Communion for use in the Church of England according to the "Book of Common Prayer"