prepare for closing