Remember to close directories when we are finished with them.