As Paul writes these opening words of this final letter to the young pastor Timothy, he is not writing as a failure, in defeat, or even depressed by his circumstances. Paul writes with expectation and authority, knowing that his life is not his own and the kingdom of God is not dependent on his circumstances.
This is not an effort to put a positive spin on a bad situation. This is Paul writing and living according to God's perspective, not man's. To live faithfully and obediently to the Lord, you must live according to God's perspective, not man's.