add end reason log