Fix typo in #ifdef
Re-order cipher suites
Fix typo in #ifdef
Check return value for NULL
Capture connection reset
Fix broken JSON output
Updates to output formatting and logging