Removed old writelns, made server accept new connections when closed.