Add JSON file output with '--print-json' option
Add results file exception handling
Catch greenlet loop error and exit thread anyway (still not correct but it works and the output is clean)
Merge pull request #1 from pan1cz/master

Add JSON file output with '--print-json' option