Yusuf عليه السلام knew that all the doors were closed. And yet, he ran towards them because he knew Allah would open them for him. If all the doors seem closed to you, keep running. For you and Yusuf عليه السلام have the same Allah.