added traces everywhere trying to understand the closing bug