now freeing on close