added default close operation