added CloseUnpack for convenience