Throw exception rather than process.exit(1)

Ugh, even *requiring* this kills the process? We can throw an exception and use try/catch when requiring jandoc. Let the person requiring choose to kill the process or not.