NH: Legislation would close tax loophole