following the successful allied burma campaign and the fall of rangoon, ayer retreated out of burma with bose and about 100 members of the rani of jhansi regiment by foot for bangkok and onwards to singapore. after the japanese surrender, ayer was chosen to leave singapore for an unknown destination together with bose and two other members of the azad hind cabinet. on bose's last flight from formosa to an unknown destination, there was no room for ayer. the plane crashed on august 17, 1945 and bose died the following day. ayer was flown from tokyo to delhi in november 1945 to give evidence in the red fort trials and became a key defence witness in the first trial. in 1951, ayer published his personal accounts of the indian national army and subhas chandra bose called "unto him a witness: the story of netaji subhas chandra bose in east asia, bombay, 1951".