safely delete browser items if createChildren() is running in thread