Enabled automatic close of staged repository