Hearts boss John McGlynn was happy that his team stayed in contention until the latter stages of the 4-1 defeat by Celtic.