The times when a career is not going well are opportunities for growth that can help lead to success down the road.