When I first heard a variation of this quote, I was heart broken. And the version was something like "When God closes a door, he always open a window."
Sadly, I was staring so long at the closed door, that I didn't notice the open window. It is a quote that I found encouraging...so glad I have it in stamp form now!