morrer na praia

Etymology
lit. 'to die on the beach', alluding to a castaway swimming to land.

Verb

 * 1)  to fail after trying hard and almost succeeding