Be sure to shut down TLS cleanly when DB not found (or other error).