at_close: actually call close