added default operation on close