Let nc wait for the end of connection.