When you reach the end of your rope, tie a knot in it and hang on.
Thomas Jefferson (1743-1826) American political philosopher, polymath, statesman, US President (1801-09)
(Spurious)
Also attributed to Franklin Roosevelt. For more information, see here.