Judge dismisses NRA bankruptcy case