Quick fix of server.c to close once connection is established.