Moved explicit high level open/close to constructors and destructor