Hello,
Though it's always a good idea to close open file handles, it's not always a good idea to close database connections.
If you are working with PHP there isn't a real need to explicity close mysql connections because they can be reused between pages.