John Caulfield’s side survive late push from Dundalk.