Update close.cpp