the mariners of that ship toiled long in the sea , and returning at last in despair they foundered in a great storm within sight of the coasts of middle-earth ; but one of them was saved by ulmo from the wrath of osse , and the waves bore him up , and cast him ashore in nevrast .