added infinite loop to the server ctrl+c to quit