Test close() in progress