linting
Call tdInit on module load.
Also tdClose on process exit.
Merge pull request #34 from kmpm/init

Possible fix for tdInit