Minor bug fix (for cases when race between thread and main thread is causing server._running to not be set to True)