#1973 Fixed race condition in startServer

Closes #1973
I would probably actually make these daemon threads so they don't prevent Lantern from closing in case anything goes awry.