Properly close TLS connections

refs #6724
Fix non-existing endpoint on ApiListener error

refs #6724
Add Application::Exit()

refs #6682
Bail early if ApiListener cannot be started

refs #6682
Use Application::Exit() for main app termination

refs #6682
Add verbose SSL error messages

refs #6682