Added operation on close.