php should automatically close the connection when the page is delivered to the browser, so unless you were closing it before the end of the page it isn't necessary to close as long as php is working correctly.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.