The train was headed for Heuston station in Dublin