Add close methods.