If a man has directed his course to great ends there is compensation even in ruin.