Still needed to be switched to hide from close to fix garbage collection