More than 400 people returning from a prosperous voyage to Australia lost their lives in 1859 when their ship , sheltering from a great storm , ran aground on treacherous rocks just 50 yards from land .