Added logging and corrected certificate loading logic: now missing certificate gracefully disables TLS