Modify close call process