Add more debugging and releasing of closed repositories