Coping with Failure

If you wanted to prepare someone to cope adaptively with failure, what could you do?