free frame when closing device