SSL improvements.
Encapsulate webserver thread in a try catch block.