Fix bug where network listener thread wouldn't interrupt and stop correctly.