The secret is not to give up hope. It's very hard not to because if you're really doing something worthwhile I think you will be pushed to the brink of hopelessness before you come through the other side.
When one thing ends, you put it away and start from scratch on the next thing.