Adding the close methods