Wait for import to be done before writing contacts