Exploring the role of the Sun's motion in terrestrial comet impacts