give up the ship

give up the ship (to stop fighting and surrender; stop trying or hoping to do something) — опускать руки, сдаваться (отказываться от дальнейших попыток)

Example: "Don't give up the ship, John," said his father when John failed a test. (Словарь американских идиом)

see also
[опускать руки ]