Use domain.run instead of domain.bind in registerDomain